package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;

public class SecondCategoryRowMapper implements RowMapper<SecondCategory> {

	@Override
	public SecondCategory mapper(ResultSet rs) throws SQLException {
		SecondCategory sc=new SecondCategory();
		sc.setSecondCategoryid(rs.getInt("second_categoryid"));
		sc.setName(rs.getString("name"));
		sc.setFirstCategoryid(rs.getInt("first_categoryid"));
		return sc;
	}

}
